package bstsetcode;

/**
 * @author noob
 * @version 1.0
 * @date 2021/3/13 10:54
 */
public class Student {


    private String name;


    public Student(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object student) {
        if (this == student) return true;
        if(student == null) return false;
        if (!(student instanceof Student)) return false;
        Student another = (Student) student;
        return this.name.equals(another.name);
    }


}
